<%-- 
    Document   : smsList
    Created on : 28/05/2010, 11:06:26
    Author     : huangp
--%>
<div>
    <tags:navigation page="${page}" />
</div>
<div class="smsContainer">  
    <c:forEach items="${list}" var="sms" varStatus="status">
        <div class="sms">
            <c:set var="dateStyle" value="style='float:left;'" />
            <c:if test="${not empty sms.sender}">
                <div class="sender">${sms.sender}</div>
                <c:set var="dateStyle" value="style='float:right;'" />
            </c:if>
            <div class="dateTime" ${dateStyle}>${sms.smsDate} ${sms.smsTime}</div>
            <c:if test="${not empty sms.receiver}">
                <div class="receiver">${sms.receiver}</div>
            </c:if>
            <div class="message">${sms.message}</div>
        </div>
    </c:forEach>
</div>
<div>
    <tags:navigation page="${page}" />
</div>
